package com.basin.common.bus.config;

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.cloud.bus.jackson.RemoteApplicationEventScan;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Slf4j
@AutoConfiguration
@RemoteApplicationEventScan(basePackages = {"${spring.cloud.bus.base-packages:}"})
public class BusConfig {

    @PostConstruct
    public void init() {
        log.info("Basin Cloud Bus initialized...");
    }
}
